<?php if (!defined('THINK_PATH')) exit();?><html lang="en">
  <head>
     <head><meta charset="utf-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="/phone/Public/Admin/assets/ico/favicon.html">
    <link href="/phone/Public/Admin/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/phone/Public/Admin/assets/css/theme.css" rel="stylesheet">
    <link href="/phone/Public/Admin/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/phone/Public/Admin/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
    <!-- <link href="http://fonts.useso.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css"> -->
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/phone/Public/Admin/assets/img/logo.png" alt="Realm Admin Template">
          </div>
           <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
           <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>

          <div class="top-menu visible-desktop">
            <ul class="pull-left">
              <li><a id="messages" data-notification="2" href="#"><i class="icon-envelope"></i> Messages</a></li>
              <li><a id="notifications" data-notification="3" href="#"><i class="icon-globe"></i> Notifications</a></li>
            </ul>
            <ul class="pull-right">  
              <li><a href="login.html"><i class="icon-off"></i> Logout</a></li>
            </ul>
          </div>

          <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">  
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div>

        </div>
      </div>
    </div>

    <div class="container-fluid">
    
     <!-- Side menu -->  
      <div class="sidebar-nav nav-collapse collapse">
        <div class="user_side clearfix">
          <img src="/phone/Public/Admin/assets/img/odinn.jpg" alt="Odinn god of Thunder">
          <h5>手机</h5>
          <a href="#"><i class="icon-cog"></i> Phone</a>        
        </div>
        <div class="accordion" id="accordion2">
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_F79999" href="/phone/Admin/Goods/goodslist.html"><i class="icon-copy"></i> <span>二维码信息</span></a>
            </div>
          </div>
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_C3F7A7 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse1"><i class="icon-magic"></i> <span>手机管理</span></a>
            </div>
            <div id="collapse1" class="accordion-body collapse">
              <div class="accordion-inner">
              <a class="accordion-toggle b_F79999" href="/phone/Admin/Phone/addphone.html"><i class="icon-copy"></i> 添加手机信息</a>
                <a class="accordion-toggle" href="/phone/Admin/Phone/phonelist.html"><i class="icon-star"></i> 手机信息管理</a>
                <a class="accordion-toggle" href="/phone/Admin/Comment/commentlist.html"><i class="icon-table"></i> 售后评论管理</a>
              </div>
            </div>
          </div>
            <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse3"><i class="icon-bullhorn"></i> <span>预售手机管理</span></a>
            </div>
            <div id="collapse3" class="accordion-body collapse">
              <div class="accordion-inner">
              <a class="accordion-toggle b_F79999" href="/phone/Admin/Presale/addpresale.html"><i class="icon-copy"></i> 添加预售手机信息</a>
                <a class="accordion-toggle b_9FDDF6" href="/phone/Admin/Presale/presalelist.html"><i class="icon-tasks"></i> 预售手机信息管理</a>
              </div>
            </div>
          </div>
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse2"><i class="icon-reorder"></i> <span>用户管理</span></a>
            </div>
            <div id="collapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a class="accordion-toggle  b_9FDDF7" href="/phone/Admin/User/userlist.html"><i class="icon-user"></i> 用户管理</a>
                <a class="accordion-toggle" href="/phone/Admin/Goods/goodslist.html"><i class="icon-list-alt"></i> 用户评论二维码</a>
              </div>
            </div>
          </div>
          
     
              
        </div>
      </div>
      <!-- /Side menu -->  

      <!-- Main window -->
      <div class="main_container" id="users_page">

        

        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>Phones</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                  <!--  <?php  ?> -->
            <form class="form-horizontal"  method="post" action="/phone/Admin/Phone/updatephone" ctype="multipart/form-data">
                  <input type="hidden" name="id" value="<?php echo $phones[0]['id']; ?>">
                 <input type="hidden" name="function" value="<?php echo $phones[0]['function']; ?>"> 
        <div class="widget-body">
              <div class="widget-forms clearfix">
                <form class="form-horizontal">
                 <div class="control-group">
                    <label class="control-label">品牌:</label>
                    <div class="controls">
                      <input class="span7 tip" name="sign" data-title="品牌" type="text"  value=<?php  echo $phones[0]['sign']; ?>>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">型号:</label>
                    <div class="controls" >
                      <input class="span7 tip"  name="model" data-title="型号" type="text"  value=<?php  echo $phones[0]['model']; ?>>
                    </div>
                </div>

                    

                <div class="control-group">
                    <label class="control-label">颜色:</label>
                    <div class="controls">
                      <input class="span7 tip" name="color" data-title="颜色" type="text"  value=<?php  echo $phones[0]['color']; ?>>
                    </div>
                </div>


                  <div class="control-group">
                    <label class="control-label">价格:</label>
                <div class="controls">
                      <input class="span7 tip" name="price" data-title="价格" type="text"  value=<?php  echo $phones[0]['price']; ?>>
                    </div>
                </div>

                 <div class="control-group">
                    <label class="control-label">性能:</label>
                <div class="controls">
                      <input class="span7 tip" name="function" data-title="性能" type="text"  value=<?php  echo $phones[0]['function']; ?>>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label">状态</label>
                    <div class="controls">
                       
                      <label class="radio">
                        <input type="radio" name="isfirst" id="optionsRadios1" value="0" <?php if ($phones[0]['isfirst']==0){echo "checked";}?>>未置顶
                      </label> 
                      <label class="radio">
                        <input type="radio" name="isfirst" id="optionsRadios2" value="1" <?php if ($phones[0]['isfirst']==1){echo "checked";}?>>置顶状态
                      </label> 
                    </div>

                 <div class="control-group">
                    <label class="control-label">图片:</label>
                    <div class="controls">
                      <img class="img-thumbnail"  src="/phone/Public/Admin/picture/<?php  echo $phones[0]['picture']; ?>" width="90" height="80" alt="未上传图片"> 
                    </div>
                </div>

                    <div class="form-group">
                    <label class="control-label">选择新图片</label>
                     <div class="controls">
                        <input type="file" name="picture">  
                    </div>             
                 </div>
            
               
            
            <div class="widget-footer">
            <div class="controls">
               <button class="btn btn-primary" type="submit">保存修改信息</button>                 
                <a href="javascript:history.go(-1);"><button class="btn" type="button">取消</button></a> 
            </div>
            </div>
            </form>



           
               </thead>
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
  
       <div id="example_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Add user/employee</h3>
      </div>
      <div class="modal-body">
        <p>Here you can insert the user creation form</p>
      </div>
      <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        <button class="btn btn-primary">Save changes</button>
      </div>
    </div>  

    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/phone/Public/Admin/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/phone/Public/Admin/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/phone/Public/Admin/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/phone/Public/Admin/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/phone/Public/Admin/assets/js/realm.js"></script>
    
  </body>
</html>